<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>解构赋值-数组处理</title>
</head>
<body>

</body>
<script>

     let arr = [1,4,5];
     console.log(arr[1]);



     // let [a,b,c] = [3,45,0];
     // console.log(a);


     let [a=0,b,c] = [,23,89];
      console.log(a);

      /**
       *  数组拼接
       * */

         let arr1 = [1,2,3];
         let arr2=[4,5,6];

         let arr3 = arr1.concat(arr2);

         let arr4 = [...arr1,...arr2]; // eval([1,2,3,4,5,6])
</script>
</html>